/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package proyectocatalina;

import java.util.logging.Level;
import java.util.logging.Logger;

class SimpleThread extends Thread {
     BackUpSample bck;
   public SimpleThread (BackUpSample bck2) { // Constructor no siempre necesario
       bck = bck2;
   }
    @Override
   public void run() { // Sobrecargando al metodo run
     if(bck.CrearBackup()){ System.out.println("Ejecutando"+"\n");
     }else try {
            this.sleep(500);
        } catch (InterruptedException ex) {
            Logger.getLogger(SimpleThread.class.getName()).log(Level.SEVERE, null, ex);
        }
     }
}
